from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views

router = DefaultRouter()
router.register(r'radiologists', views.RadiologistViewSet)
router.register(r'schedules', views.ScheduleViewSet)
router.register(r'leaves', views.LeaveViewSet)
router.register(r'unforeseen_circumstances', views.UnforeseenCircumstanceViewSet)
router.register(r'studies', views.StudyViewSet)
router.register(r'workloads', views.WorkloadViewSet)

urlpatterns = [
    path('login/', views.login, name='login'),
    path('register/', views.register, name='register'),
    path('user/', views.get_user, name='get_user'),
    path('', include(router.urls)),
    path('predict_workload/', views.PredictWorkloadAPI.as_view(), name='predict_workload')
]